package digitaldreamers.libraries.networkmanagement.socket;

import java.io.IOException;

public interface IConnectionHandler {
	public void connectToServer(String strIP, int iPort);

	public void addEventListener(OnDataReceiverListener listener);

	public void removeEventListener(OnDataReceiverListener listener);

	void fireDataReceiveEvent(byte[] data) throws IOException;

	public static interface OnDataReceiverListener {
		public abstract void onDataReceiver(byte[] data) throws IOException;
	}
}
